package co.yixiang.modules.mp.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class YxArticleVisitLogDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章浏览id
     */
    private Integer id;

    /**
     * 文章id
     */
    private Integer articleId;

    /**
     * 用户id
     */
    private String uid;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章作者
     */
    private String author;

    /**
     * 原文链接
     */
    private String url;

    /**
     * 浏览次数
     */
    private Integer visit;

    /**
     * 单次最大时长
     */
    private Integer maxTime;

    /**
     * 总时长
     */
    private Integer totalTime;

    /**
     * 点赞状态
     */
    private Boolean likeStatus;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * is_del
     */
    private Integer isDel;

}
